package com.cykj.service.impl;

import com.cykj.entity.UserEntity;
import com.cykj.mapper.UserMapper;
import com.cykj.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public List<UserEntity> find() {
        return userMapper.find();
    }

    @Override
    public int deleteUser(int id) {
        return userMapper.deleteUser(id);
    }
}
